<?php
include_once("interfaceConfig.php");
class put_user_permission
{
	function put($web_clien_pwd)
	{
		global $web_service_pwd;
		if($web_service_pwd == $web_clien_pwd)
		{
			include_once(ADMIN_PATH."TheAdmin.class.php");
			$admin = new TheAdmin();
			return $admin->get_permission_arr();
		}
		return "";
	}
}

/*本机调试
$s = new put_user_permission();
print_r($s->put("sanshi"));
exit();
*/

/*soap调用*/
$server = new SoapServer(null, array('uri' => "urn:put_user_permission"));
$server->setClass("put_user_permission");
$server->handle();

/*hessian 调用
$service = &new HessianService();
$service->registerObject(new put_user_permission());
$service->displayInfo = true;
$service->service();
*/
?>